<script setup lang="ts">
import NavBar from '@/components/HomeView/NavBar.vue'
import SideBar from '@/components/HomeView/SideBar.vue'
import MainContent from '@/components/HomeView/MainContent.vue'
</script>

<template>
  <div>
    <el-container>
      <!-- 导航栏 -->
      <el-header>
        <nav-bar />
      </el-header>

      <!-- 主体内容 -->
      <el-container>
        <!-- 侧边栏 -->
        <el-aside width="150px">
          <side-bar />
        </el-aside>

        <!-- 中间内容 -->
        <el-main>
          <main-content />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.el-header {
  background-color: #fff;
  padding: 0 20px;
}

.el-aside {
  background-color: #f9fafb;
}

.el-main {
  background-color: #fff;
  --el-main-padding: 0px;
}
</style>
